<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\Relations\CompanyInfoTrait;

/**
 *
 * @author Joker
 *
 */
class Examination extends Model
{
    use CompanyInfoTrait;
    
    protected $table='examinations';

    protected $primaryKey = 'id';

    protected $fillable = array('id','name','score_limit','score','times','company_id','question_count');

    
    function questions() {
        return $this->belongsToMany('App\Models\Questions','examination_question','question_id','examination_id');
    }
}